package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.StrategyCatalog;
import cn.wolfcode.wolf2w.query.StrategyCatalogQueryObject;
import org.springframework.data.domain.Page;

import java.util.List;

public interface IStrategyCatalogService {
    /**
     * 添加一个攻略分类
     * @param strategyCatalog
     */
    void save(StrategyCatalog strategyCatalog);

    /**
     * 根据id删除一个攻略分类
     * @param id
     */
    void delete(String id);

    /**
     * 修改一个攻略分类的信息
     * @param strategyCatalog
     */
    void update(StrategyCatalog strategyCatalog);

    /**
     * 获取一个攻略分类对象
     * @param id
     * @return
     */
    StrategyCatalog get(String id);

    /**
     * 查询所有攻略分类信息
     * @return
     */
    List<StrategyCatalog> list();



    Page<StrategyCatalog> query(StrategyCatalogQueryObject qo);


    List<StrategyCatalog> query(String id);
}
